<html>
<script src="Draw.js"></script>
<script src="UI.js"></script>
<script src="Logic.js"></script>
<script src="run.js"></script>
<body>
	<canvas id="canvas" width="240" height="340">
	</canvas>
</body>

<script>
Logic.start();
window.addEventListener('keydown',doKeyDown,true);
//window.addEventListener('keyup',doKeyUp,true);
window.addEventListener('mousedown',UI.onMouseDown,false);
window.addEventListener('mousemove',UI.onMouseMove,false);
window.addEventListener('mouseup',UI.onMouseUp,false);
function doKeyDown(e){
	UI.updateBoard(Logic.board);
	UI.updateScore(Logic.score);
	//Logic.updateActions();
}
</script>

</html>
